package com.xjgc.msibase.constant;

/**
 * @author: 小逗号
 * @date: 2023-12-21
 * @description:
 * @since:
 */
public interface Constant {
    /**
     * 服务接口类型
     */
    String SERVER_TYPE_WS = "WS";
    String SERVER_TYPE_REST = "REST";

    /**
     * rest请求方式
     */
    String REST_METHOD_POST = "POST";
    String REST_METHOD_GET = "GET";
    /**
     * rest请求content-type
     */
    String REST_CONTENT_TYPE_JSON = "application/json";
    String REST_CONTENT_TYPE_FROM = "application/x-www-form-urlencoded";
    /**
     * rest 携带token的部位
     */
    String REST_TOKEN_MODE_HEADERS = "headers";
    String REST_TOKEN_MODE_BODY = "body";
    /**
     * WebService调用方式 动态客户端/代理工厂/客户端
     * */
    String WS_CLIENT_METHOD_DYNAMIC_CLIENT = "JaxWsDynamicClientFactory";
    String WS_CLIENT_METHOD_CLIENT = "client";
    String WS_CLIENT_METHOD_PROXY_FACTORY = "JaxWsProxyFactoryBean";
    /**
     * WS读超时时间
     */
    Long WS_READ_TIME_OUT = 600000L;

    String DATA_TYPE_JSON = "json";
    String DATA_TYPE_XML = "xml";

    String ASYNC_FF = "YBFF";


}
